@mixin flexCenter {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-background {
  z-index: 999;
  @include flexCenter;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgb(0, 0, 0, 0.5);
  transition: 0.3s all;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  pointer-events: none;

  &.active {
    visibility: visible;
    pointer-events: all;
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: white;
  padding: 15px;
  width: 366px;
}

.signIn-text {
  text-align: center;
}

.close-element {
  position: relative;
  left: 96%;
  cursor: pointer;
  transition: 0.2s all;
  width: 15px;
  height: 15px;

  &:hover {
    opacity: 0.5;
  }
}

.modal-content form {
  @include flexCenter;
  padding: 15px;
  flex-direction: column;
  width: 100%;
  height: auto;

  .input-block {
    width: 100%;
    margin-top: 15px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    input {
      border: 1px solid rgba(0, 0, 0, 0.3);
      width: 100%;
      height: 40px;
      padding: 0 15px;
      font-size: 18px;
      outline: none;
      color: black;
      font-weight: 500;
    }

    input[type="password"] {
      letter-spacing: 10px;
    }

    p {
      color: black;
      font-size: 20px;
      text-transform: uppercase;
      text-align: left;
      width: 100%;
    }
  }

  .forgot-password {
    @include flexCenter;
    transition: 0.3s all;
    margin-top: 20px;
    cursor: pointer;
    height: 100%;
    color: #464646;
    background-image: linear-gradient(#464646, #464646);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    height: 25px;

    svg {
      margin-left: 10px;
      height: 20px;
      width: 20px;
    }

    &:hover {
      background-size: 100% 1px;
    }
  }

.button-redirect-to-registration {
    color: black;
    transition: 0.3s all;
    font-size: 20px;
    background: transparent;
    border: none;
    margin: 30px 0 20px 0;
    text-transform: uppercase;
    cursor: pointer;
  }

.button-to-signIn {
    transition: 0.3s all;
    cursor: pointer;
    margin-top: 30px;
    align-items: center;
    background: black;
    color: #fff;
    display: flex;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    text-transform: uppercase;
    border: none;
    width: 165px;

    svg {
      margin-left: 10px;
    }
  }

  button[type="submit"]:hover {
    background-color: #5c5c5c;
  }

  button[type="button"]:hover {
    color: #5c5c5c;
  }
}